#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
	int a = 0, b = 0;
	cin >> a;
	cin >> b;
	if (a >= 0 && a <= 10 ^ 4 && b >= 0 && b <= 9)
	{
		float c = a + 0.1 * b;
		float d = 1.9;
		int e = c / d;
		cout << e << endl;
	}
	return 0;
}